﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class User : BasePage 
{
    protected void Page_Load(object sender, EventArgs e)
    {
        var test = new WorkFlowData.WorkFlowDataContext(ConfigurationManager.ConnectionStrings["wfConnStr"].ConnectionString);
        grdUser.DataSource = test.userGetAllInfo("");
        grdUser.DataBind();
        grdUser.HeaderRow.TableSection = TableRowSection.TableHeader;

        grdUserGroup.DataSource = test.userGroupGetList();
        grdUserGroup.DataBind();
        grdUserGroup.HeaderRow.TableSection = TableRowSection.TableHeader;
    }
}